package cn.edu.scau.nursingcenter.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import cn.edu.scau.nursingcenter.entiry.Stay_back;
/**
 * 退住信息管理DAO接口Stay_backRepository
 * @author feng
 *
 */
@Repository
public interface Stay_backRepository extends JpaRepository<Stay_back, Integer>{

	/**
	 * 根据客户名字查询
	 * @param name 客户名字
	 * @return list
	 */
	@Query(value = "from stay_back s where s.c_name = ?1")
	List<Stay_back> findByName(@Param("c_name")String name);
}
